#!/usr/bin/env python3
"""Basic usage example for MCP Decision Optimization Server.

This example demonstrates how to use the basic functions of the
decision optimization server.
"""

import sys
import os
import asyncio

# Add the src directory to the path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))

from server import hello_optimization, get_server_info


def main():
    """Main example function."""
    print("=== MCP Decision Optimization Server - Basic Usage Example ===")
    print()
    
    # Test basic greeting
    print("1. Testing basic greeting:")
    greeting = hello_optimization("Example User")
    print(f"   {greeting}")
    print()
    
    # Get server information
    print("2. Getting server information:")
    server_info = get_server_info()
    print(f"   Server Name: {server_info['name']}")
    print(f"   Version: {server_info['version']}")
    print(f"   Status: {server_info['status']}")
    print("   Capabilities:")
    for capability in server_info['capabilities']:
        print(f"     - {capability}")
    print()
    
    print("=== Example completed successfully! ===")


if __name__ == "__main__":
    main()